package exe;

/**
 * @author oldliu
 * @since 1.0
 */
public class BallHit {
    public static void main(String[] args) {
        double sum=0;
        double h=10;
        int c=0;
        while (h>=0.01){
            sum+=h;
            h*=0.8;
            sum+=h;
            c++;
        }
        System.out.println("次数是"+c);
        System.out.println("轨迹是"+sum+"米");
    }
}
